package com.hkp.face.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author hkp
 * @create 2019-09-22 18:36
 */
@Controller
@RequestMapping("face")
public class faceController {

    @GetMapping("test")
    @ResponseBody
    public String test(){
        return "123";
    }

    @GetMapping(value = "new")
    public String face() {
        return "public/face";
    }

    @GetMapping(value = "home")
    public String home(ModelMap modelMap) {
        modelMap.put("name","hkp");
        modelMap.put("age","19");
        return "home";
    }
}
